---
title: "revoke token · RUAL Documentation"
description: "Revokes all access tokens based of the authentication document."
canonical: https://docs.rual.nl/block-types/session management/function_sessions_management_revoke
language: en
---

# revoke token

This block is part of the [`session management`](https://docs.rual.nl/block-types/session%20management) group and was last modified in core [`v12.0.7`](https://docs.rual.nl/core-versions/120007).

Revokes all access tokens based of the authentication document.

- flow `flow`

- auth. guid required `value` The GUID of authentication storage document, **not** the access token.

- flow `flow`

- revoked `condition` Returns true if we could successfully revoke the given authentication document and the access-tokens generated from it.

- error `value`

A typical wiring for [revoke token](https://docs.rual.nl/block-types/session%20management/function_sessions_management_revoke): [branch](https://docs.rual.nl/block-types/flow/branch) feeds the `flow` pin; [value](https://docs.rual.nl/block-types/value/value_default) feeds the `guid` pin; the `flow` out pin feeds [branch](https://docs.rual.nl/block-types/flow/branch).

![Studio canvas example for the revoke token block: typical wiring for revoke token.](https://docs.rual.nl/canvas-examples/function_sessions_management_revoke.png)

### Commonly used with

In production blueprints, this block is most often wired together with:

- [branch](https://docs.rual.nl/block-types/flow/branch): wired in both directions with this block.

- [get fields](https://docs.rual.nl/block-types/object/object_field_getter_multiple): feeds into this block. Gets the selected fields from the given object.

- [new object](https://docs.rual.nl/block-types/object/object_new_fields): this block feeds into it. Builds a new object filled with the given fields.

- [create](https://docs.rual.nl/block-types/globals/trigger_custom_function): feeds into this block. Creates a new function that can be executed using the given name.

### Version history

Introduced in [`v12.0.7`](https://docs.rual.nl/core-versions/120007).
